import useRequest from "@/api/useRequest";

export class gptControllerApi {
  static synonymRewrite(content: any): Promise<any> {
    return useRequest({
      url: "/gpt/synonymRewrite?storyContent="+content,
      method: "get",
    })
  }


  static rewriteStoryContent(content: string): Promise<any> {
    return useRequest({
      url: "/gpt/rewrite?storyContent="+content,
      method: "get",
    })
  }

  static revisionTextFromWhisper(data:any): Promise<any> {
    return useRequest({
      url: "/gpt/revisionTextFromWhisper",
      method: "post",
      data
    })
  }

  static revisionVideoText(data:any): Promise<any> {
    return useRequest({
      url: "/lux/revisionVideoText",
      method: "post",
      data,
      timeout: 1000 * 60 * 10
    })
  }
}
